// pages/AllPlaylist/AllPlaylist.js
import request from '../../utils/request'
Page({
  data: {
    allPlayList:[],
    hotPlayList:[],
    personalized:[],

  },
 async onLoad(options) {
  
  let allPlayListData = await request('/playlist/catlist',{limit:30} );
  this.setData({
    allPlayList:allPlayListData.sub
    
  })
  let hotPlayListData = await request('/playlist/hot' );
  this.setData({
    hotPlayList:hotPlayListData.tags
  })
  let personalizedData = await request('/personalized',{limit:30} );
  this.setData({
    personalized:personalizedData.result,
    
  })
  

  }
})